<?php

require_once ROOT_APPLICATION_MODULES_DEFAULT_FORMS.DS."Page.php";
require_once ROOT_APPLICATION_MODULES_DEFAULT_OBJECTS.DS."Page.php";
require_once ROOT_APPLICATION_MODULES_DEFAULT_MODELS.DS."Page.php";

class IndexController extends Zend_Controller_Action
{
    public function init()
    {
    	
    }

    public function detailAction()
    {
    	$page_id = $this->getRequest()->getParams('page_id');
    	if(null==$page_id)
    	{
    		throw new Exception('Trang không tồn tại'.$page_id);
    	}
		$modelPage = new End_Models_Page();
		$page = $modelPage->fetchAll();
		$this->view->Pages = $page;
    }
}







